﻿namespace Model.Entites
{
    /// <summary>
    /// 后台管理员
    ///</summary>
    [SugarTable("T_Admin")]
    public class TAdminInfo : ModelStatusBase
    {
        /// <summary>
        /// 登录名
        ///</summary>
        public string AdminName { get; set; }

        /// <summary>
        /// 登录密码
        ///</summary>
        public string AdminPwd { get; set; }

        /// <summary>
        /// 最后登录时间
        ///</summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? LastLoginDate { get; set; }

        /// <summary>
        /// token
        ///</summary>
        [SugarColumn(ColumnDataType = "LONGTEXT", IsNullable = true)]
        public string Token { get; set; }

        /// <summary>
        /// 最后登录IP
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string LastLoginIp { get; set; }

        /// <summary>
        ///  过期时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? ExpireTime { get; set; }

        /// <summary>
        /// 是否超级管理员
        /// </summary>
        public bool IsSuper { get; set; }

        /// <summary>
        /// 需要强制修改密码
        /// </summary>
        [SugarColumn(DefaultValue = "1")]
        public bool IsModifyPassword { get; set; }
    }
}